package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    Role findAll();

    void add(Role role, Integer[] userIds, Integer[] permissionIds);

    PageResult findPage(QueryPageBean queryPageBean);

    Role findAById(Integer id);

    List<Integer> findUserAndRoleByUserId(Integer id);

    List<Integer> findRoleAndPermissionByUserId(Integer id);

    void edit(Role role, Integer[] userIds, Integer[] permissionIds);

    void delete(Integer id);
}
